package com.xmgong.hxdemo.chatmodule.pages.conversation;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.util.Log;

import com.hyphenate.chat.EMConversation;
import com.xmgong.hxdemo.chatmodule.R;

import java.util.Map;

/**
 * Created by xmgong on 2017/8/16.
 */

public class ConversationActivity extends AppCompatActivity implements ConversationContract.IView {

    Map<String, EMConversation> conversations = null;

    ConversationPrsent mPresent;

    SwipeRefreshLayout swipeRefreshLayout;
    RecyclerView mrecyclerview;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_conversation);

        swipeRefreshLayout = findViewById(R.id.swipe);
        mrecyclerview = findViewById(R.id.recycle);

        mPresent = new ConversationPrsent(this);
        //获取所有的会话列表
        conversations = mPresent.getConversationLst();

        Log.i("Eric", String.valueOf("会话size：") + conversations.size());
    }
}
